﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Engine;

namespace Estadio
{
    public class HandleLocator : ILocator
    {
        Entity player;
        Entity handle;

        public HandleLocator(Entity player, Entity handle)
            : base()
        {
            this.player = player;
            this.handle = handle;
        }

        #region ILocator Members

        public Microsoft.Xna.Framework.Vector3 Position
        {
            get { throw new NotImplementedException(); }
        }

        public Microsoft.Xna.Framework.Matrix Rotation
        {
            get { throw new NotImplementedException(); }
        }

        public Microsoft.Xna.Framework.Vector3 Scale
        {
            get { throw new NotImplementedException(); }
        }

        public Microsoft.Xna.Framework.Matrix LocalWorld
        {
            get { throw new NotImplementedException(); }
        }

        public Microsoft.Xna.Framework.Matrix World
        {
            get { return handle.LocalWorld * player.World; }
        }

        #endregion
    }
}
